//
//  SyncHandlerUpdateAlumno.m
//  MasterUabApp
//
//  Created by Developer on 14/10/13.
//  Copyright (c) 2013 Owlab. All rights reserved.
//


//----IMPORTS-->
#import "SyncHandlerUpdateAlumno.h"
#import "EConsts.h"
#import "ECommon.h"
#import "Alumno.h"
//<-------------

@implementation SyncHandlerUpdateAlumno


- (int) getType
{
    return SYNC_HANDLER_TYPE_NONE;
}

- (NSString*) getMethod
{
    return @"services.php?updateAlumno";
}

- (void) fillRequestParams:(NSMutableDictionary*)data
{
    [super fillRequestParams:data];
    [data setValue:_AlumnoID        forKey:@"id"];
    [data setValue:_AlumnoNombre    forKey:@"nombre"];
    [data setValue:_AlumnoApellidos forKey:@"apellidos"];
    [data setValue:_AlumnoNIF       forKey:@"nif"];
}

- (BOOL) processJSON:(id)data;
{
    BOOL ok = YES;
    
    AlumnoArray *alumno = (AlumnoArray*)self.delegate;
    [self syncDone:YES object:alumno];
    
    return ok;
}

@end